/* style.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* 登录和注册页面样式 */
.login-container, .register-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f2f5;
}

.login-box, .register-box {
    width: 400px;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-box h1, .register-box h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #1890ff;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

button {
    width: 100%;
    padding: 12px;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #40a9ff;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.register-link, .login-link {
    text-align: center;
    margin-top: 20px;
}

.register-link a, .login-link a {
    color: #1890ff;
    text-decoration: none;
}

/* 头部导航栏 */
header {
    background-color: #1890ff;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: bold;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-info span {
    margin-right: 10px;
}

.user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

/* 大厅页面样式 */
main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.create-room-box {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.create-room-box h2 {
    margin-bottom: 15px;
    color: #1890ff;
}

.room-list {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.room-list h2 {
    margin-bottom: 15px;
    color: #1890ff;
}

.room-card {
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.room-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.room-card h3 {
    margin-bottom: 10px;
    color: #333;
}

.room-info {
    margin-bottom: 15px;
    color: #666;
}

.room-card .join-room-btn {
    width: auto;
    padding: 8px 15px;
}

.no-rooms {
    text-align: center;
    color: #999;
    padding: 20px;
}